{$contents}

{literal}
<div style="text-align:left; padding:10px;">
<h2>Source</h2>

<pre class="code">
&lt;?php
$post = DomFgPost::getInstance();
		
if( $post->doSearch ) {
	$message = array(
		'type' => 'warning',
		'message' => 'This search actually does nothing! You searched for <b>'.$post-&gt;search.'</b>',
		'colspan' => 2,
	);
}
	
$customView = new DomView( 'DomFg/customView.html');
$customView->someParam = 'Hello world!';
$customView->searched = $post->search;
$customView->letters = array('A','B','C','D','E','F','G','H');
		
$panel = array(
	'title' => 'Custom html content',
	'layout' => 'table',
	'action' => $this->getUrl('customHtml'),
	'layoutConfig' => array(
		'columnWidths' => array(150)
	),
	'items' => array(
		$message,
		array(
			'type' => 'textField',
			'name' => 'search',
		),
		array(
			'type' => 'button',
			'name' => 'doSearch',
			'title' => 'Search',
		),
		array(
			'colspan' => 2,
			'value' => $customView->fetch(),
		),
	),		
);
		
$this->view->contents = DomFg::render( $panel );
?&gt;
</pre>
</div>
{/literal}